For the problems of long runtime, ignoring the difference between classes of sample, the paper put forward an algorithm called Global Weighted Sparse Locality Preserving Projection (GWSLPP) based on Sparse Preserving Projection (SPP). The algorithm made sample have good identification ability while maintaining the sparse reconstruction relations of the samples. The algorithm processed the samples though sparse reconstruction, then made the sample on the projection and maximized the divergence between classes of sample. It got the projection and classified the sample at last. The algorithm made the experiments on FERET face database and YALE face database. The experimental results show the GWSLPP algorithm is superior to the Locality Preserving Projection (LPP), SPP and FisherFace algorithm in both execution time and recognition rate. The execution time is only 25s and the recognition rate can reach more than 95%. The experimental data prove the effectiveness of the algorithm.